//
//  LWZ_MusicFirstTableViewCellY.m
//  MusicFM
//
//  Created by 李光耀 on 16/1/12.
//  Copyright © 2016年 LWZ. All rights reserved.
//

#import "LWZ_MusicFirstTableViewCellY.h"

@implementation LWZ_MusicFirstTableViewCellY

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setDic:(NSDictionary *)dic{
    if (_dic != dic) {
        _dic = dic;
    }
//    [self.imageViewPic yy_setImageWithURL:_dic[@"img"] placeholder:[UIImage imageNamed:@"noimage"]];
    self.label_first.text = _dic[@"songs"][0][@"title"];
    self.label_second.text = _dic[@"songs"][1][@"title"];
    self.label_third.text = _dic[@"songs"][2][@"title"];
    self.label_title.text = _dic[@"summary"];
    self.label_title.textColor = [UIColor whiteColor];
        [self.imageViewPic yy_setImageWithURL:_dic[@"img"] placeholder:[UIImage imageNamed:@"noimage"] options:YYWebImageOptionProgressiveBlur | YYWebImageOptionSetImageWithFadeAnimation completion:nil];
    
}

@end
